package com.hzncc.flowable_diboot.trial_contracts.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.entity.BaseModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;

/**
* TrialContractAudit - User 关联中间表 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-10-17
* Copyright © MyCorp
*/

@TableName("mdl_trial_contract_audit_iam_user")
@Getter @Setter @Accessors(chain = true)
public class TrialContractAuditUser extends BaseModel {
    private static final long serialVersionUID = 1849061892348673111L;

    /**
     * 关联TrialContractAudit
     */
    @NotNull(message = "关联TrialContractAudit不能为空")
    @Length(max=32, message="关联TrialContractAudit长度应小于32")
    @TableField()
    private String trialContractAudit;

    /**
     * 字段名
     */
    @Length(max=100, message="字段名长度应小于100")
    @TableField()
    private String fieldKey;

    /**
     * 关联User
     */
    @NotNull(message = "关联User不能为空")
    @Length(max=32, message="关联User长度应小于32")
    @TableField()
    private String user;


}